using System;

namespace PropertyExpression.ControllableQuery.Test
{
    public static class Util
    {
        public static int GetLength(this Type type)
        {
            return int.Parse(type.Name.Substring(1));
        }

        public static byte GetPrecision(this Type type)
        {
            return byte.Parse(type.Name.Substring(1));
        }

        public static byte GetScale(this Type type)
        {
            return type.GetPrecision();
        }
    }
}